package cn.tedu.system.product.service;

import cn.tedu.system.product.pojo.dto.AgricultureProductParam;
import cn.tedu.system.product.pojo.dto.LiveProductParam;
import cn.tedu.system.product.pojo.vo.LiveProductVO;
import cn.tedu.system.product.pojo.vo.ProductVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface ProductService {
    List<ProductVO> selectAll(HttpSession session);

    ProductVO selDetail(Long id, HttpSession session);

    //杨平
    List<ProductVO> search(String name, HttpSession session);

    //直播商品发布
    void addProduct(LiveProductParam liveProduct,  HttpSession session);
    //查看直播商品
    List<LiveProductVO> selectLiveProduct(Long liveId, HttpSession session);
    //下架直播商品
    void delLiveProduct(Long id, HttpSession session);

    //助农商品发布
    void addAgricultureProduct(AgricultureProductParam productParam, HttpSession session);
    //管理员删除助农商品
    void delAgricultureProduct(Long id, HttpSession session);
}
